<?php

/**
 * lastComments components.
 *
 * @package    cpfaizenay
 * @subpackage news
 * @author     Manu
 * @version    1.0
 */
class lastCommentsComponents extends sfComponents
{
 /**
  * Executes homeShow action
  *
  * @param sfRequest $request A request object
  */
  public function executeHomeShow(sfWebRequest $request) {
    $this->last_comments_list = Doctrine_Manager::getInstance()->getCurrentConnection()->fetchAssoc(Doctrine::getTable('Comment')->getLastComments());
    // Doctrine::getTable('Comment')->getLastComments()->fetchArray();
  }
}

?>